import request from '@/utils/request'

// 查询电柜断电控制列表
export function listDgddkz(query) {
  return request({
    url: '/kzgl/dgddkz/list',
    method: 'get',
    params: query
  })
}

// 查询电柜断电控制详细
export function getDgddkz(ID) {
  return request({
    url: '/kzgl/dgddkz/' + ID,
    method: 'get'
  })
}

// 新增电柜断电控制
export function addDgddkz(data) {
  return request({
    url: '/kzgl/dgddkz',
    method: 'post',
    data: data
  })
}

// 修改电柜断电控制
export function updateDgddkz(data) {
  return request({
    url: '/kzgl/dgddkz',
    method: 'put',
    data: data
  })
}

// 删除电柜断电控制
export function delDgddkz(IDs) {
  return request({
    url: '/kzgl/dgddkz/' + IDs,
    method: 'delete'
  })
}
